<script setup>
</script>

<template>
  <div class="vote-box">
    <div class="header">
      <h3 class="title">Vue3比Vue2更加的好用</h3>
      <span>0</span>
    </div>

    <div class="main">
      <p>支持人数：0人</p>
      <p>反对人数：0人</p>
      <p>支持比率：--</p>
    </div>

    <div class="footer">
      <el-button type="primary">支持</el-button>
      <el-button type="danger">反对</el-button>
    </div>
  </div>
</template>

<style lang="less" scoped>
.vote-box {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 10px;
  width: 300px;
  border: 1px solid #ddd;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #ddd;

    .title {
      line-height: 40px;
      font-size: 18px;
    }

    span {
      font-size: 18px;
      color: lightcoral;
    }
  }

  .main {
    margin: 10px 0;
    p {
      line-height: 30px;
      font-size: 14px;
    }
  }
}
</style>